<?php
/**
 * 话题推荐位
 */
require_once dirname(dirname(__DIR__))."/common.php";

use app\cls\tom\Response;
use app\cls\tom\SysResource;
use app\cls\tom\Tools;
use app\model\Topic;

//实例化数据库
$db = SysResource::getDB(false);
$Topic = new Topic($db);


//查询推荐话题
$topic_recommend=$Topic->topic_recommend();
//var_dump($Topic);exit;

Response::output(0,"查询成功",$topic_recommend['data'],$topic_recommend['total']);